package org.cshoo.sys.model.vo
{
	
	import mx.collections.ArrayCollection;
	
	
	[RemoteClass(alias="org.cshoo.sys.data.entity.Menu")]	
	[Bindable]
	public class Menu
	{

		private var _id:Number;
		private var _code:String;
		private var _name:String;
		private var _order:int;
		private var _flexurl:String;
		private var _flextreeicon:String;
		private var _flextabicon:String;
		private var _description:String;
		private var _parent:Menu;
		private var _state:Number = 0; //此属性是为了树选择用
		private var _children:Array;
		
		public function Menu()
		{
			
		}

		public function get id():Number{
			return _id;
		}

		public function set id(pData:Number):void{
			_id=pData;
		}

		public function get code():String{
			return _code;
		}

		public function set code(pData:String):void{
			_code=pData;
		}

		public function get name():String{
			return _name;
		}

		public function set name(pData:String):void{
			_name=pData;
		}



		public function get description():String{
			return _description;
		}

		public function set description(pData:String):void{
			_description=pData;
		}

		public function get parent():Menu{
			return _parent;
		}

		public function set parent(pData:Menu):void{
			_parent=pData;
		}

		public function get children():Array
		{
			if(this._children != null && this._children.length == 0)
				this._children = null;
			return _children;
		}

		public function set children(value:Array):void
		{
			_children = value;
		}

		public function get state():Number
		{
			return _state;
		}

		public function set state(value:Number):void
		{
			_state = value;
		}

		public function get flexurl():String
		{
			return _flexurl;
		}

		public function set flexurl(value:String):void
		{
			_flexurl = value;
		}

		public function get flextreeicon():String
		{
			return _flextreeicon;
		}

		public function set flextreeicon(value:String):void
		{
			_flextreeicon = value;
		}

		public function get flextabicon():String
		{
			return _flextabicon;
		}

		public function set flextabicon(value:String):void
		{
			_flextabicon = value;
		}

		public function get order():int
		{
			return _order;
		}

		public function set order(value:int):void
		{
			_order = value;
		}




	}
}